<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
    <meta charset="UTF-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>交易流水</title>
    <link rel="stylesheet" type="text/css" href="css/list-style.css"/>
    <link rel="stylesheet" type="text/css" href="css/nav1.css">
</head>
<body>
<nav class="mynav">
    <ul>
        <li><a href="" onclick="window.open('index.html')">首 &nbsp 页</a></li>
        <li><a href="" onclick="window.open('bankcardlist.html')">我的银行卡</a></li>
        <li><a href="" onclick="window.open('deallist.html')">我的流水</a></li>
        <li><a href="" onclick="window.open('applydebitcard.html')">申请借记卡</a></li>
        <li><a href="" onclick="window.open('personalcenter.html')">个人中心</a></li>
        <li><a href="" onclick="window.open('helpandsupport.html')">帮助与支持</a></li>
    </ul>
</nav>
<span class="target"></span>

<!--流水列表-->
<div class="container">
    <div class="component">
        <table>
            <thead>
            <tr>
                <th>银行卡号</th>
                <th>交易时间</th>
                <th>交易金额</th>
                <th>交易类型</th>
            </tr>
            </thead>
            <tbody id="dealList" name="dealList">
            </tbody>
        </table>
    </div>
</div>
<!--//流水列表-->
<script src="js/jquery.min.js"></script>
<script src="js/nav1.js"></script>
<script src="js/jquery.js"></script>
<script type="text/javascript">
	$.ajax({
	    url: "http://www.longm.top:8080/lm/GetAlldetil",
	    type: "POST",
	    dataType:"json",
	    headers:{
	        'Content-Type':'application/json',
	        "token":window.localStorage.getItem("token")
	    },
	    cache: false,
	    async: false,
	    contentType: "application/x-www-form-urlencoded",
	    data: {},
	    success: function (res) {
	        console.log(JSON.stringify(res));
			if (res.code === 200) {
				var result = res.data;
				for(var i=0;i<result.length;i++) {
					$('#dealList').append(
					"<tr>"+
					    "<td class='card_id'>"+result[i].cardnum+"</td>"+
					    "<td class='deal_time'>"+result[i].dealtime+"</td>"+
					    "<td class='deal_money'>"+result[i].money+"</td>"+
					    "<td class='deal_type'>"+result[i].dealtypeid+"</td>"+
					"</tr>")
				}
			}
	    }
	});
</script>
</body>
</html>